package com.qizhou.base.dialog.lifecycledialog

import androidx.fragment.app.DialogFragment

/**
 * dialog
 */
abstract class BaseDialogFragment : BasePNdialogFragment<Any,Any>() {

    var mDefaultListener: BasePNdialogFragment.BasePNdialogListener<Any,Any>? = null
    override fun setDefaultListener(defaultListener: BasePNdialogListener<Any, Any>): BasePNdialogFragment<Any, Any> {
        mDefaultListener = defaultListener
        return super.setDefaultListener(defaultListener)
    }

    interface BaseDialogListener :BasePNdialogFragment.BasePNdialogListener<Any,Any>{
        override fun onDismiss(dialog: DialogFragment, any: Any) {

        }

        override fun onDialogNegativeClick(dialog: DialogFragment, any: Any) {

        }

        override fun onDialogPositiveClick(dialog: DialogFragment, any: Any) {
        }
    }


    abstract class SimpleDialogListener : BaseDialogListener {
        override fun onDismiss(dialog: DialogFragment, any: Any) {

        }

        override fun onDialogNegativeClick(dialog: DialogFragment, any: Any) {

        }

        override fun onDialogPositiveClick(dialog: DialogFragment, any: Any) {
        }
    }

}